package wlmap;
import javax.swing.*;

import java.awt.*;

import java.awt.event.MouseAdapter;

import java.awt.event.MouseEvent;



class NormalMenu

{

 1   private JFrame jFrame;

    private JButton visitButton, searchButton, okayButton;

    private Font font = new Font("微软雅黑", 1, 20);




    public NormalMenu()

    {

        jFrame = new JFrame("功能菜单");

        jFrame.setBounds(700, 200, 250, 200);

        jFrame.setLayout(new FlowLayout());

        visitButton = new JButton("1.浏览地点信息");

        visitButton.setFont(font);

        searchButton = new JButton("2.查询最短路径");

        searchButton.setFont(font);

        okayButton = new JButton("关闭");

        okayButton.setFont(font);





        visitButton.addMouseListener(new MouseAdapter()

        {

            @Override

            public void mouseClicked(MouseEvent e)

            {

                new VisitPoint();

            }

        });



        searchButton.addMouseListener(new MouseAdapter()

        {

            @Override

            public void mouseClicked(MouseEvent e)

            {

                new SearchLength2();

            }

        });



        okayButton.addMouseListener(new MouseAdapter()

        {

            @Override

            public void mouseClicked(MouseEvent e)

            {

                jFrame.setVisible(false);

            }

        });



        jFrame.add(visitButton);

        jFrame.add(searchButton);

        jFrame.add(okayButton);

        jFrame.setResizable(false);

        jFrame.setVisible(true);



    }
    public static void main(String[] args)

    {

    	NormalMenu normalMenu = new NormalMenu();

    }



}



